package com.sxz.sbs.module.sms.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.sxz.sbs.R;
import com.sxz.sbs.module.sms.mode.SmsTemplateBean;

import java.util.List;

/**
 * 短信模板适配器
 */

public class SmsTemplateAdapter extends BaseQuickAdapter<SmsTemplateBean,BaseViewHolder>  {
    public SmsTemplateAdapter(@Nullable List<SmsTemplateBean> data) {
        super(R.layout.item_sms_template_layout,data);
    }

    @Override
    protected void convert(BaseViewHolder helper, SmsTemplateBean item) {
        helper.setText(R.id.tv_sms_template_txt,item.getTxt_MessageInfo());
    }
}
